#{extends 'orgLead.html' /}
<title>${org.name}</title>
#{if isAuthorized}
#{if isOrgLead} &nbsp;
<a href="@{Application.createDepartmentView()}" method="GET">Create
	Department</a>
#{/if} #{else}Create Department #{/else} | #{if isOrgLead}
<a href="changeType" method="GET"> Change Type</a>
#{/if} #{else} Change Type #{/else} |

#{ifnot isFollowing}
<a href="@{Application.followOrg(org.id)}"onclick="alert('You are now following the organization successfully');">Follow </a> #{/ifnot}|
<a href="@{Application.viewAllDepartments()}">Departments</a>



| #{if isOrgLead}
<a href="addRelation">Add Relation</a>
#{/if} #{else}Add Relation #{/else} | #{if isOrgLead}
<a href="@{Application.viewLog()}">View Log</a>
#{/if} #{else}View Log #{/else}| #{if isOrgLead}
<a href="@{Application.restrictOrganizer()}">User Restrictions</a>
#{/if} #{else}Add Relation #{/else} #{if org.tagable}|
<a href="@{Application.createTag()}">Create Tag</a> |
<a href="tags">Browse Tags</a>
<a href="@{Application.executionCenter(0)}">Execution Centres</a>|

#{/if}

<h1>
	<b><i> &nbsp; Name: ${org.name}</i> </b>
</h1>
<h2>
	<b><i> &nbsp; Type: ${org.type}</i> </b>
</h2>
<br />

<form action="@{Application.organizationSearch()}">
	&nbsp; Search by Topics or Departments: <select name="TDsearch">
		<option value="Topics">Topics</option>
		<option value="Departments">Departments</option>
	</select> <br /> <br /> &nbsp;Enter name of Topic or Department: <input
		type="text" name="TDname"> <br /> <br /> &nbsp; <input
		type="submit" value="Search">
</form>

#{/if}
#{else}
You Are Not Authorized To View This Organization ... 
<form action=@{Application.requestToJoinPrivateOrg()}>
</select> <br /> <br /> &nbsp;Click if you want to join and a request will be sent:
	&nbsp; <input type="button" value="Request To Join"> <br> <span
		style="color: #c00" class="error">#{error 'name' /}</span> <br />
		</form>
#{/else}